package com.gyy.faq.pojo.dto;

import com.gyy.faq.validator.group.FaqGroup;

import javax.validation.constraints.NotNull;
import java.util.Date;

public class FaqClassifyDTO {
	@NotNull(groups = FaqGroup.InsertSonClassify.class, message = "id不能为空")
	@NotNull(groups = FaqGroup.DeleteClassify.class, message = "id不能为空")
	private Integer id;

	private Integer parentId;

	@NotNull(groups = FaqGroup.InsertClassify.class, message = "名称不能为空")
	@NotNull(groups = FaqGroup.InsertSonClassify.class, message = "名称不能为空")
	private String classifyName;

	private Date createTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getClassifyName() {
		return classifyName;
	}

	public void setClassifyName(String classifyName) {
		this.classifyName = classifyName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}